package com.authine.cloudpivot.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

@ToString
@AllArgsConstructor
public enum AlarmTypeCodeEnum {

    BLLJ("896","暴露垃圾","环境零污染","住建与城乡建设","市容环境卫生维护","环卫维护的主次干道路面保洁"),
    DLBJ("18143","道路不洁","环境零污染","住建与城乡建设","市容环境卫生维护","环卫维护的主次干道路面保洁"),
    JGYC("18157","井盖异常","安全零事故","市政维护管理","盖板破损","市政类盖板出现缺失、移位、开裂、弹跳、破损、翘跛市政人行道及其附属设施损坏、坑洼等（已移交）"),
    NLJC("18112","内涝检测","环境零污染","市政维护管理","排水管道堵塞","市政道路上非下雨原因排水设施出现排水不畅、满溢、堵塞（已移交）"),
    HDPFW("15599","河道漂浮物检测","环境零污染","城市管理","环境卫生","湘江段河面、河滩卫生"),
    HALJ("18113","河岸垃圾","环境零污染","城市管理","环境卫生","湘江段河面、河滩卫生"),
    ZDJY("18192","占道经营","居民零上访","城市管理",null,null)
    ;


    /**
     * 编码
     */
    @Getter
    private  String code;
    /**
     * 名称
     */
    @Getter
    private String name;
    /**
     * 五零
     */
    @Getter
    private String fiveZero;
    /**
     * 一级分类
     */
    @Getter
    private String oneClass;
    /**
     * 二级分类
     */
    @Getter
    private String twoClass;
    /**
     * 三级分类
     */
    @Getter
    private String threeClass;

    public static AlarmTypeCodeEnum getDescrptionByCodes(String code){
        for (AlarmTypeCodeEnum alarmTypeCodeEnum : AlarmTypeCodeEnum.values()) {
            if (alarmTypeCodeEnum.code .equals(code)) {
                return alarmTypeCodeEnum;
            }
        }
        return null;
    }

}
